﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Module.Core.BusinessLogic;
using Module.Core.EntitiesInfo;
using Module.Core.LoginSystem.Commons.Framwork;

namespace Web.Cms.Member
{
    public partial class LstTreeMember : AdminUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<MemberInfo> list = MemberBL.GetSub_ItemsFull("25479");
            if (list.Count > 0)
            {
                rptData.DataSource = list;
                rptData.ItemDataBound += new RepeaterItemEventHandler(rptData_ItemDataBound);
                rptData.DataBind();

            }
        }

        void rptData_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            MemberInfo info = (MemberInfo) e.Item.DataItem;
            Label lbleve0 = (Label) e.Item.FindControl("lbleve0");
            if (info.Leve == 0)
                lbleve0.Text = info.FullName;
        }
    }
}